package com.htl.exampro.paper.pojo.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.htl.exampro.base.model.PageParams;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 试卷表
 * </p>
 *
 * @author hehehe
 * @since 2025-05-26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(name = "PaperPageParam", description = "试卷PageParam")
public class PaperPageParam extends PageParams implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 试卷ID
     */
    @Schema(description = "试卷ID")
    private String paperId;

    /**
     * 试卷名称
     */
    @Schema(description = "试卷名称")
    private String paperName;

    /**
     * 试卷说明（如：包含章节范围、题型分布等）
     */
    @Schema(description = "试卷说明（如：包含章节范围、题型分布等）")
    private String description;

    /**
     * 考试时长(分钟)
     */
    @Schema(description = "考试时长(分钟)")
    private Integer duration;

    /**
     * 是否公开(0私有/1公开)
     */
    @Schema(description = "是否公开(0私有/1公开)")
    private Boolean isPublic;

    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID")
    private String createdPerson;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    /**
     * 修改人ID
     */
    @Schema(description = "修改人ID")
    private String updatedPerson;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}
